package com.yh.controller;

import com.yh.services.IDirtyWordService;
import com.yh.services.impl.DirtyWordServiceImpl;
import com.yh.util.BaseAction;
import lombok.Data;

import java.io.IOException;
import java.io.PrintWriter;


@Data
public class WordAction extends BaseAction {
    private String text; //标题

    IDirtyWordService idws=new DirtyWordServiceImpl();

    public String addMessage() throws IOException {
        String t =idws.getAll(text);
        PrintWriter out = getResponse().getWriter();
        out.print(t);
        return null;
    }

}
